<template>
  <div id="app" class="div-main">
    <!-- 左边 内容  -->
    <div class="div-left" @click="fullscreen">
      <!-- 项目分布 地图 -->
      <div class="div-left-left-top">
        <div class="div-left-left-top-img">
          <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
          <span class="title-font">项目分布</span>
        </div>

        <!-- 项目简介 -->
        <el-image style="margin-left:120px" :src="require('@/assets/yqdp/地图/003.png')" fit="fit"></el-image>
        <div id="canvasbaox" class="canvas-div">
          <canvas ref="tagcanvas" width="870" height="500"></canvas>
        </div>
        <div style="margin-top:-50px">
          <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
          <span class="title-font">项目简介</span>
        </div>
        <div style="position: absolute; margin-left:40px;margin-top:19px">
          <span
            style="ont-family:Microsoft YaHei;
                font-weight:700;
                color:#ffffff;
                font-size:26px;"
          >{{curProBaseInfo.projectName}}</span>

          <p
            style="ont-family:Microsoft YaHei;
              color:#ffffff;
              font-size:22px;
              line-height:35px;
              text-indent:2em;
              width:792px;
              "
          >{{curProBaseInfo.projectContent}}</p>
        </div>
      </div>

      <!-- 签约时间 等项目表格内容  -->
      <div class="div-left-left-middle">
        <div class="div-c-1">
          <div class="div-content">
            <div class="div-img"></div>
            <div class="div-cent">
              <div>
                <span class="span-title" style>签约时间</span>
              </div>
              <!-- <span class="span-title" style>签约时间</span> -->
              <div class="div-filed">
                <span class="span-filed">一期：</span>
                <span class="span-filed-cent">{{curProBaseInfo.projectDate}}</span>
              </div>
              <div class="div-filed">
                <span class="span-filed">二期：</span>
                <span class="span-filed-cent">2021年5月28日</span>
              </div>
            </div>
          </div>

          <div class="div-content">
            <div class="div-img"></div>
            <div class="div-cent-right">
              <div class="div-cent-1">
                <div>
                  <span class="span-title" style>项目投资</span>
                </div>
                <div class="div-filed">
                  <span class="span-filed">一期：</span>
                  <span class="span-filed-cent">{{curProBaseInfo.projectInvest}}</span>
                </div>
                <div class="div-filed">
                  <span class="span-filed">二期：</span>
                  <span class="span-filed-cent">25亿元</span>
                </div>
              </div>

              <div class="div-cent-2">
                <div>
                  <span class="span-title" style>本年度预计投资</span>
                </div>
                <div class="div-filed-2">
                  <span class="span-filed-cent-2">{{curProBaseInfo.projectYearInvest}}</span>
                </div>
              </div>
            </div>
          </div>
        </div>

        <div class="div-c-2">
          <div class="div-content">
            <div class="div-img"></div>
            <div class="div-cent">
              <div>
                <span class="span-title" style>占地面积</span>
              </div>
              <!-- <span class="span-title" style>签约时间</span> -->
              <div class="div-filed">
                <span class="span-filed">一期：</span>
                <span class="span-filed-cent">{{curProBaseInfo.projectArea}}</span>
              </div>
              <div class="div-filed">
                <span class="span-filed">二期：</span>
                <span class="span-filed-cent">265亩</span>
              </div>
            </div>
          </div>

          <div class="div-content">
            <div class="div-img"></div>
            <div class="div-cent-right">
              <div class="div-cent-1">
                <div>
                  <span class="span-title" style>达产后预计产值</span>
                </div>
                <div class="div-filed-2">
                  <span class="span-filed-cent-2">{{curProBaseInfo.projectOutvalue}}</span>
                </div>
              </div>

              <div class="div-cent-2">
                <div>
                  <span class="span-title" style>达产后预计税收</span>
                </div>
                <div class="div-filed">
                  <span class="span-filed">一期：</span>
                  <span class="span-filed-cent">{{curProBaseInfo.projectTax}}</span>
                </div>
                <div class="div-filed">
                  <span class="span-filed">二期：</span>
                  <span class="span-filed-cent">0.39亿元/年</span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- 项目专班成员 -->
      <div class="div-left-left-bottom">
        <div class="div-left-left-user">
          <div class="div-left-left-top-img">
            <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
            <span class="title-font">项目专班成员</span>
          </div>
          <div class="div-leader-cent">
            <!-- <div class="div-leader-cent" style=" "> -->
            <!-- 班长 -->
            <div class="leader-1">
              <div class="tuoxiang">
                <el-avatar :size="80" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
              </div>
              <div class="name">
                <div>
                  <span
                    class="leader-font"
                  >{{curleaderInfo.filter(item=>item.sort=="1").length?curleaderInfo.filter(item=>item.sort=="1")[0].custLeader.leaderName:""}}</span>
                </div>
                <div>
                  <span class="leader-font">(班长)</span>
                </div>
              </div>
            </div>
            <!-- 副班长 -->
            <div class="leader-2">
              <div style="tuoxiang">
                <el-avatar :size="70" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
              </div>
              <div class="name">
                <div>
                  <span
                    class="leader-font"
                  >{{curleaderInfo.filter(item=>item.sort=="2").length?curleaderInfo.filter(item=>item.sort=="2")[0].custLeader.leaderName:""}}</span>
                </div>
                <div>
                  <span class="leader-font">(副班长)</span>
                </div>
              </div>
            </div>

            <!-- 管家 -->
            <div class="users">
              <el-row>
                <el-col
                  :span="8"
                  v-for="(item,index) in curleaderInfo.filter(item=>item.sort!='1' && item.sort!='2')"
                  :key="index"
                >
                  <div style="tuoxiang">
                    <el-avatar :size="60" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
                  </div>
                  <div class="name">
                    <div>
                      <span class="leader-font">{{item.custLeader.leaderName}}</span>
                    </div>
                    <div>
                      <span class="leader-font">(管家)</span>
                    </div>
                  </div>
                </el-col>
              </el-row>
            </div>
          </div>
        </div>

        <!-- 专班服务情况 -->
        <div class="div-left-left-star">
          <div class="div-left-left-top-img">
            <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
            <span class="title-font">专班服务情况</span>
          </div>
          <div class="div-star">
            <el-row>
              <el-col :span="8">
                <div class="star-back">
                  <div class="tupian">
                    <el-avatar :size="60" fit="cover" :src="require('@/assets/yqdp/icon/专班服务情况/入企业次数.png')"></el-avatar>
                  </div>
                  <div class="font span-num">
                    <span>入企次数</span>
                  </div>
                  <div class="font span-num">
                    <span>{{curStarInfo.starNum}}次</span>
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="star-back">
                  <div>
                    <el-avatar :size="60" fit="cover" :src="require('@/assets/yqdp/icon/专班服务情况/下达联络单.png')"></el-avatar>
                  </div>
                  <div class="font span-num">
                    <span>下达联络单</span>
                  </div>
                  <div class="font span-num">
                    <span>{{curStarInfo.starContact}}件</span>
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="star-back">
                  <div>
                    <el-avatar :size="60" fit="cover" :src="require('@/assets/yqdp/icon/专班服务情况/召开调度会议.png')"></el-avatar>
                  </div>
                  <div class="font span-num">
                    <span>召开调度会议</span>
                  </div>
                  <div class="font span-num">
                    <span>{{curStarInfo.starMeet}}次</span>
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="star-back">
                  <div>
                    <el-avatar :size="60" fit="cover" :src="require('@/assets/yqdp/icon/专班服务情况/收集问题.png')"></el-avatar>
                  </div>
                  <div class="font span-num">
                    <span>收集问题</span>
                  </div>
                  <div class="font span-num">
                    <span>{{curStarInfo.starQuestionAccept}}个</span>
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="star-back">
                  <div>
                    <el-avatar :size="60" fit="cover" :src="require('@/assets/yqdp/icon/专班服务情况/解决问题.png')"></el-avatar>
                  </div>
                  <div class="font span-num">
                    <span>解决问题</span>
                  </div>
                  <div class="font span-num">
                    <span>{{curStarInfo.starQuestionSolve}}个</span>
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="star-back">
                  <div>
                    <el-avatar :size="60" fit="cover" :src="require('@/assets/yqdp/icon/专班服务情况/问题办结率.png')"></el-avatar>
                  </div>
                  <div class="font span-num">
                    <span>问题办结率</span>
                  </div>
                  <div class="font span-num">
                    <span>{{curStarInfo.starQuestionRate}}%</span>
                  </div>
                </div>
              </el-col>
            </el-row>
          </div>
        </div>
      </div>
    </div>

    <!-- 中间内容 -->
    <div class="div-mid">
      <!-- “星级管家”服务情况 -->
      <div class="mid-top">
        <div class="div-left-left-top-img">
          <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
          <span class="title-font">“星级管家”服务情况</span>
        </div>
        <div>
          <el-row>
            <el-col :span="8">
              <div class="tupian">
                <el-image fit="cover" :src="require('@/assets/yqdp/icon/星级管家服务/入企次数.png')"></el-image>
              </div>
              <div class="cent">
                <div>
                  <span class="font-name">入企次数</span>
                </div>
                <div>
                  <span class="font-cent">{{star.goEnterprise}}次</span>
                </div>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="tupian">
                <el-image fit="cover" :src="require('@/assets/yqdp/icon/星级管家服务/下达联络单.png')"></el-image>
              </div>
              <div class="cent">
                <div>
                  <span class="font-name">下达联络单</span>
                </div>
                <div>
                  <span class="font-cent">{{star.liaison}}件</span>
                </div>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="tupian">
                <el-image fit="cover" :src="require('@/assets/yqdp/icon/星级管家服务/召开调度会议.png')"></el-image>
              </div>
              <div class="cent">
                <div>
                  <span class="font-name">召开调度会议</span>
                </div>
                <div>
                  <span class="font-cent">{{star.convene}}次</span>
                </div>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="tupian">
                <el-image fit="cover" :src="require('@/assets/yqdp/icon/星级管家服务/收集问题.png')"></el-image>
              </div>
              <div class="cent">
                <div>
                  <span class="font-name">收集问题</span>
                </div>
                <div>
                  <span class="font-cent">{{star.gatherIssue}}个</span>
                </div>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="tupian">
                <el-image fit="cover" :src="require('@/assets/yqdp/icon/星级管家服务/解决问题.png')"></el-image>
              </div>
              <div class="cent">
                <div>
                  <span class="font-name">解决问题</span>
                </div>
                <div>
                  <span class="font-cent">{{star.solveIssue}}个</span>
                </div>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="tupian">
                <el-image fit="cover" :src="require('@/assets/yqdp/icon/星级管家服务/问题办结率.png')"></el-image>
              </div>
              <div class="cent">
                <div>
                  <span class="font-name">问题办结率</span>
                </div>
                <div>
                  <span class="font-cent">{{star.issueOver}}%</span>
                </div>
              </div>
            </el-col>
          </el-row>
        </div>
      </div>

      <!-- 中心资讯 -->
      <div class="mid-mid">
        <div class="div-left-left-top-img">
          <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
          <span class="title-font">中心资讯</span>
        </div>

        <div class="mid-cent">
          <!-- <el-image
            fit="cover"
            class="tupian"
            src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg"
          ></el-image>-->
          <el-carousel ref="news-el-carousel" indicator-position="none" :autoplay="true" arrow="never">
            <el-carousel-item v-for="(item,index) in news" :key="index">
              <el-image :interval="5000" class="tupian" fit="scale-down" :src="apiUrl + item.img "></el-image>
            </el-carousel-item>
          </el-carousel>
        </div>
      </div>

      <!-- 项目进度 -->
      <div class="div-progress">
        <div class="progress-header">
          <div class="div-left-left-top-img">
            <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
            <span class="title-font">项目进度</span>
          </div>
          <div class="progress-cfg">
            <div class="cfg-finish"></div>
            <div class="cfg-finish-title">
              <span class="cfg-title-font">已完成</span>
            </div>
            <div class="cfg-doing"></div>
            <div class="cfg-finish-title">
              <span class="cfg-title-font">进行中</span>
            </div>
            <div class="cfg-init"></div>
            <div class="cfg-finish-title">
              <span class="cfg-title-font">未完成</span>
            </div>
          </div>
        </div>
        <div class="progress-cent">
          <el-row>
            <el-col :span="3" v-for="(item,index) in curProgressInfo" :key="index">
              <div
                class="pro-cent-cent"
                :style="{ 'border-color': item.progressState=='0'?'#ff0000':(item.progressState=='1'?'#ffea30':'#00d848')}"
              >
                <div
                  class="pro-align"
                  :style="{padding:item.custProjectProgressConfig.name.length>4?'0px 10px 10px 10px':'15px 10px 10px 10px'}"
                >
                  <span class="cent-cent-font">{{item.custProjectProgressConfig.name}}</span>
                </div>
              </div>
              <div v-if="index !=7 && index!=15 && index !=23" class="pro-item-bar"></div>
              <div v-if="index==7 || index==8" class="pro-item-bar-2"></div>
            </el-col>
          </el-row>
        </div>
      </div>
    </div>

    <!-- 右边内容 -->
    <div class="div-right">
      <!-- 时间 -->
      <div class="div-time-main">
        <div class="time-cent" style="width: 155px;">{{ date | formatTimerTime}}</div>
        <div class="time-cent" style="width: 310px;">{{ date | formatTimerDate }}</div>
        <div class="time-cent">{{ date | formatTimerWeek }}</div>
      </div>

      <!-- 天气 -->
      <div class="div-weather-main">
        <!-- 预警 -->
        <div class="weather-warning">
          <div style="float:left">
            <el-image fit="cover" :src="require('@/assets/yqdp/icon/异常报警.png')"></el-image>
          </div>
          <div style="float:left;margin-top:10px;">
            <span>预警：两小时内有暴雨，请做好暴雨防护措施。</span>
          </div>
        </div>
        <!-- 天气 -->
        <div class="weather-cent">
          <el-row>
            <el-col :span="6" v-for="(item,index) in weathers" :key="index">
              <div v-if="index<1" class="weather-item">
                <el-row>
                  <el-image :src="require('@/assets/yqdp/icon/多云-大.png')"></el-image>
                </el-row>
                <!-- <p class="span1">{{ item.wea_img}}</p> -->
                <el-row>
                  <span class="span1">{{ item.tem_night}}~{{item.tem_day}}℃</span>
                </el-row>
                <el-row>
                  <span class="span1">{{ item.wea}}</span>
                </el-row>
              </div>
              <div v-else-if="0<index && index<4" class="weather-item-2">
                <div class="w-item-2">
                  <el-row>
                    <span class="span2">{{ item.date | formatTimerWeek}}</span>
                  </el-row>
                  <el-row>
                    <el-image :src="require('@/assets/yqdp/icon/多云-小.png')"></el-image>
                  </el-row>
                  <el-row>
                    <span class="span2">{{ item.tem_night}}~{{item.tem_day}}℃</span>
                  </el-row>
                  <el-row>
                    <span class="span2">{{ item.wea}}</span>
                  </el-row>
                </div>
              </div>
            </el-col>
          </el-row>
        </div>
      </div>

      <!-- 党建之窗 -->
      <div class="div-party-main">
        <div class="party-header" style="width:336px;
              height:70px;">
          <div class="div-left-left-top-img">
            <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
            <span class="title-font">党建之窗</span>
          </div>
        </div>
        <el-carousel
          ref="party-el-carousel"
          indicator-position="none"
          :autoplay="false"
          @change="partyElcarousel"
          arrow="never"
        >
          <el-carousel-item v-for="(item,index) in party" :key="index">
            <!-- 时间 -->
            <div class="party-time">
              <div class="time-cri"></div>
              <!-- <div class="time-font">1943年8月30日</div> -->
              <div class="time-font">{{ item.time }}</div>
            </div>
            <!-- 内容 -->
            <!-- <div class="party-cent">
          <p>毛泽东主持召开中共中央政治局会议，听取周恩来关于三年来大后方工作的报告。周恩来在报告中指出：国民党对美国很迷信。中间阶层面大，但组织弱，行动散漫，斗争经验缺乏。现在大后方通货膨胀。从我们来说，大后方的工作要服从根据地的基本利益。大后方的工作方针是争取无产阶级对中小地主和民族资产阶级的领导权，过去陈绍禹的意见是错误的。我们的口号是抗战、团结、进步。我们主张：积极抗战，反对消极抗战：坚持团结，不怕分裂；同国民党平等合作；真正进步，反对落后倒退；争取外援，反对依靠外援。关于国共关系问题，我们对党内教育的口号应是争取好转，不忘逆转，争取合作，警惕突然事变的到来。</p>
          <p>在八月三十日的会议上，毛泽东讲了抗日时期党的路线问题，指出：国民党这次对我们的军事进攻和政治进攻确实被打下去了，现在蒋介石下令停止“取消中共”的宣传。我们同国民党合作，国民党的政策是两面政策，抗日与反共。我们对国民党的斗争是以斗争求团结，中央的路线是正确的，陈绍禹同志只要团结不要斗争的路线是错误的。陈绍禹同志抹杀国民党内部的区别，反对抗日阵线中有左、中、右之分，只分抗日阵线和非抗日阵线。他认为中国是被侵略国就没有法西斯主义。现在证明国民党大地主大资产阶级更加反动了，如出版《中国之命运》，调兵进攻陕甘宁边区，同时又更软弱了。毛泽东还指出：陈绍禹同志一九四一年在中央书记处会议上说中央路线是错误的，《新民主主义论》要修改；两年来他还向人宣传中央路线是错误的。会议根据毛泽东提议，决定继续举行政治局会议，展开讨论抗日时期党的路线问题。</p>
            </div>-->
            <!-- <div class="party-cent" v-html="party.length?(party[0].content):''">
            </div>-->
            <div class="party-cent">
              <vue-seamless-scroll
                ref="scrollParty"
                :data="item.content.split('</p>')"
                :class-option="defaultOptionParty"
                @ScrollEnd="ScrollEndParty"
              >
                <p v-for="(item, index) in item.content.split('</p>')" :key="index" v-html="item+'</p>'">
                  <!-- {{item+'</p>'}} -->
                </p>
              </vue-seamless-scroll>
              <!-- <el-carousel indicator-position="none" :autoplay="true">
            <el-carousel-item v-for="(item,index) in party" :key="index" v-html="item.content"></el-carousel-item>
              </el-carousel>-->
            </div>
          </el-carousel-item>
        </el-carousel>
      </div>
      <!-- 信息及通告 -->
      <div class="div-notice-main">
        <div class="notice-header">
          <div class="div-left-left-top-img">
            <el-image style="margin-top: 20px;margin-left: 13px; " :src="require('@/assets/yqdp/icon/大标题.png')"></el-image>
            <span class="title-font">信息及通告</span>
          </div>
        </div>
        <div class="notic-cent-main">
          <!-- 标题 -->
          <!-- <div class="notice-title">加快工作进度 全力推动项目建设</div> -->
          <el-carousel
            ref="notice-el-carousel"
            indicator-position="none"
            :autoplay="false"
            arrow="never"
            @change="noticeElcarousel"
          >
            <el-carousel-item v-for="(item,index) in notice" :key="index">
              <div class="notice-title">{{item.title}}</div>
              <!-- 图片 -->
              <div class="notic-pic">
                <el-image
                  fit="cover"
                  class="tupian"
                  src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg"
                ></el-image>
              </div>
              <!-- 内容 -->
              <!-- <div class="notice-cent">
            <p>8月2日，万家寨项目专班全体人员在张剑龙书记的安排部署下，前往项目施工现场与项目相关负责人进行沟通交流，就部分工程施工设计、施工方案、专家论证等工作推进情况以及实际工作中存在的困难进行了对接服务。</p>
            <p>目前万家寨水控装备研发基地项目已组织召开（生活服务中心、科研中心）深基坑支护工程专项施工方案论证会。会议由甲方、监理方、勘察方、设计方、施工方五方责任主体，以及山西省岩土专业专家库五位专家组成员参与，项目施工方对深基坑方案及设计方案进行了汇报，专家组成员听</p>
              </div>-->
              <div class="notice-cent">
                <vue-seamless-scroll
                  ref="scrollNotice"
                  :data="item.content.split('</p>')"
                  :class-option="defaultOptionNotice"
                  @ScrollEnd="ScrollEnd"
                >
                  <p v-for="(item, index) in item.content.split('</p>')" :key="index" v-html="item+'</p>'">
                    <!-- {{item+'</p>'}} -->
                  </p>
                </vue-seamless-scroll>
              </div>
            </el-carousel-item>
          </el-carousel>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// 这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
// 例如：import 《组件名称》 from '《组件路径》';
import { projectBaseInfo, projectleaderInfo, projectStarInfo, projectProgressInfo, star, news, party, notice } from "@/api/bigsrceen";
import { getApiUrl } from "@/utils/utils";
import { weatherToday, weatherWeek } from "@/api/weather";

import screenfull from 'screenfull'
import vueSeamlessScroll from '@/components/myClass.vue'

const weekArr = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
export default {
  name: 'App',
  components: {
    vueSeamlessScroll
  },
  // import引入的组件需要注入到对象中才能使用
  data() {
    // 这里存放数据
    return {
      apiUrl: getApiUrl(),
      screenfullBut: false, // 全屏按钮
      //实时时间
      date: new Date(),
      // canvans 变量
      ctx: "",
      ctxdom: "",

      weathers: [
        {
          "date": "2021-09-09",
          "wea": "晴",
          "wea_img": "qing",
          "tem_day": "32",
          "tem_night": "16",
        }
      ],

      //总共10个项目,项目id及项目分布时所在的图位置坐标
      projects: [
        {
          projectId: 1,
          proname: '合成生物项目',
          point: {
            x: 635, y: 225,
          },
          font: {
            x: 730, y: 150,
            value: '合成生物项目'
          },
          line: {
            x: 700, y: 180
          }
        }, {
          projectId: 2,
          proname: '厚生锂电池膈膜项目',
          point: {
            x: 495, y: 275,
          },
          font: {
            x: 290, y: 80,
            value: '厚生锂电池膈膜项目'
          },
          line: {
            x: 500, y: 180
          }
        },
        {
          projectId: 3,
          proname: '矽盛电子项目',
          point: {
            x: 465, y: 300,
          },
          font: {
            x: 350, y: 440,
            value: '矽盛电子项目'
          },
          line: {
            x: 380, y: 375
          }
        },
        {
          projectId: 4,
          proname: '万家寨水控装备项目',
          point: {
            x: 525, y: 310,
          },
          font: {
            x: 550, y: 350,
            value: '万家寨水控装备项目'
          },
          line: {
            x: 520, y: 360
          }
        },
        {
          projectId: 5,
          proname: '顺康文旅项目',
          point: {
            x: 240, y: 290,
          },
          font: {
            x: 70, y: 160,
            value: '顺康文旅项目'
          },
          line: {
            x: 220, y: 240
          }
        },
        {
          projectId: 6,
          proname: '克林泰尔项目',
          point: {
            x: 320, y: 310,
          },
          font: {
            x: 190, y: 120,
            value: '克林泰尔项目'
          },
          line: {
            x: 315, y: 230
          }
        },
        {
          projectId: 7,
          proname: '中电光谷项目',
          point: {
            x: 290, y: 405,
          },
          font: {
            x: 50, y: 380,
            value: '中电光谷项目'
          },
          line: {
            x: 240, y: 430
          }
        },
        {
          projectId: 8,
          proname: '丰树产业园项目',
          point: {
            x: 240, y: 385,
          },
          font: {
            x: 40, y: 260,
            value: '丰树产业园项目'
          },
          line: {
            x: 210, y: 330
          }
        },
        {
          projectId: 9,
          proname: '云木生物项目',
          point: {
            x: 605, y: 225,
          },
          font: {
            x: 730, y: 220,
            value: '云木生物项目'
          },
          line: {
            x: 680, y: 260
          }
        },
        {
          projectId: 10,
          proname: '新凯达项目',
          point: {
            x: 495, y: 305,
          },
          font: {
            x: 450, y: 400,
            value: '新凯达项目'
          },
          line: {
            x: 475, y: 365
          }
        },
      ],
      //当前展示的项目的id
      curProId: 10,
      curProBaseInfo: {},
      curleaderInfo: [],
      curStarInfo: {},
      curProgressInfo: [],
      star: {},
      news: [],
      party: [],
      notice: [],

      noticeCentDetail: '',
      partyCentDetail: '',

      scrollNoticeAutoPlay: false,
      scrollPartyAutoPlay: true,

    }
  },
  filters: {
    formatTimerDate: function (value) {
      let date = new Date(value);
      let y = date.getFullYear();
      let MM = date.getMonth() + 1;
      MM = MM < 10 ? "0" + MM : MM;
      let d = date.getDate();
      d = d < 10 ? "0" + d : d;
      let h = date.getHours();
      h = h < 10 ? "0" + h : h;
      let m = date.getMinutes();
      m = m < 10 ? "0" + m : m;
      let s = date.getSeconds();
      s = s < 10 ? "0" + s : s;
      return y + "年" + MM + "月" + d + "日";
    },
    formatTimerTime: function (value) {
      let date = new Date(value);
      let y = date.getFullYear();
      let MM = date.getMonth() + 1;
      MM = MM < 10 ? "0" + MM : MM;
      let d = date.getDate();
      d = d < 10 ? "0" + d : d;
      let h = date.getHours();
      h = h < 10 ? "0" + h : h;
      let m = date.getMinutes();
      m = m < 10 ? "0" + m : m;
      let s = date.getSeconds();
      s = s < 10 ? "0" + s : s;
      return h + ":" + m + ":" + s;
    },
    formatTimerWeek: function (value) {
      let date = new Date(value);
      let y = date.getDay();

      return weekArr[y];
    }
  },
  // 监听属性 类似于data概念
  computed: {
    defaultOptionParty() {
      return {
        step: 1, // 数值越大速度滚动越快
        limitMoveNum: 1, // 开始无缝滚动的数据量 this.dataList.length
        hoverStop: false, // 是否开启鼠标悬停stop
        direction: 1, // 0向下 1向上 2向左 3向右
        openWatch: true, // 开启数据实时监控刷新dom
        singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
        singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
        waitTime: 1000, // 单步运动停止的时间(默认值1000ms)
        autoPlay: false,
        heightsub: 390,
      }
    },
    defaultOptionNotice() {
      return {
        step: 1, // 数值越大速度滚动越快
        limitMoveNum: 1, // 开始无缝滚动的数据量 this.dataList.length
        hoverStop: false, // 是否开启鼠标悬停stop
        direction: 1, // 0向下 1向上 2向左 3向右
        openWatch: true, // 开启数据实时监控刷新dom
        singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
        singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
        waitTime: 1000, // 单步运动停止的时间(默认值1000ms)
        autoPlay: false,
        heightsub: 320,
      }
    }
  },
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {

    qryweatherToday() {
      let params = {
        appid: '86845543',
        appsecret: 'Rg5fmxTx',
        cityid: '101100103',
        unescape: 1
      }
      weatherToday(params).then(res => {
        console.info(res);
        res.tem_night;
        //         wea 	String 	天气情况 	
        // wea_img 	String 	天气对应图标 	固定9种类型(您也可以根据wea字段自己处理):
        // xue、lei、shachen、wu、bingbao、yun、yu、yin、qing
        // tem 	String 	实时温度 	
        // tem_day 	String 	白天温度(高温) 	
        // tem_night 	String 	白天温度(低温) 	
        // win 	String 	风向 	
        // win_speed 	String 	风力等级 	
        // win_meter 	String 	风速
      })
    },
    qryweatherWeek() {
      let params = {
        appid: '86845543',
        appsecret: 'Rg5fmxTx',
        cityid: '101100103',
        unescape: 1,
        vue: 1
      }
      weatherWeek(params).then(res => {
        console.info(res);
        if (res && res.data) {
          this.weathers = res.data;
        }
        //          date 	String 	预报日期 	
        // wea 	String 	天气情况 	
        // wea_img 	String 	天气对应图标 	固定9种类型(您也可以根据wea字段自己处理):
        // xue、lei、shachen、wu、bingbao、yun、yu、yin、qing
        // tem_day 	String 	白天温度(高温) 	
        // tem_night 	String 	白天温度(低温) 	
        // win 	String 	风向 	
        // win_speed 	String 	风力等级

      })
    },

    // 全屏功能
    fullscreen() {
      console.log('fullscreen')
      // debugger;
      if (!screenfull.isEnabled) {
        this.$notification.open({
          message: '温馨提示',
          description:
            '您的浏览器无法使用全屏功能，请更换谷歌浏览器或者请手动点击F11按钮全屏展示！',
          duration: 10,
          placement: 'bottomLeft',
        });
        return false
      }
      screenfull.toggle();
      if (screenfull.isFullscreen) {
        this.screenfullBut = false;
      } else {
        this.screenfullBut = true;
      }
    },

    ScrollEnd() {
      // console.log("ScrollEnd")
      let aa = this.$refs['notice-el-carousel'];
      aa.next();//手动划到下一个
    },

    ScrollEndParty() {
      let aa = this.$refs['party-el-carousel'];
      aa.next();//手动划到下一个
    },
    partyElcarousel(newindex, oldindex) {
      setTimeout(() => {
        this.$refs.scrollParty[newindex]._startMove();
      }, 1000)
      this.$refs.scrollParty[oldindex]._stopMove();

    },
    noticeElcarousel(newindex, oldindex) {

      setTimeout(() => {
        this.$refs.scrollNotice[newindex]._startMove();
      }, 1000)
      this.$refs.scrollNotice[oldindex]._stopMove();


    },

    qryProjectBaseInfo() {
      projectBaseInfo(this.curProId).then(res => {
        this.curProBaseInfo = res.data;
      });
    },
    qryprojectleaderInfo() {
      projectleaderInfo(this.curProId).then(res => {
        this.curleaderInfo = res.data;
      });
    },
    qryprojectStarInfo() {
      projectStarInfo(this.curProId).then(res => {
        this.curStarInfo = res.data;
      });
    },
    qryprojectProgressInfo() {
      projectProgressInfo(this.curProId).then(res => {
        this.curProgressInfo = res.data;
      });
    },

    qrystar() {
      star(this.curProId).then(res => {
        this.star = res.data;
      });
    },
    qrynews() {
      news(this.curProId).then(res => {
        this.news = res.data;
      });
    },
    qryparty() {
      party(this.curProId).then(res => {
        this.party = res.data;
        this.$nextTick(function () {
          //dom 加载完成 
          setTimeout(() => {
            this.$refs.scrollParty[0]._startMove();
          }, 1000)
          // this.$refs.scrollParty[0]._startMove();
          for (let index = 1; index < this.party.length; index++) {
            this.$refs.scrollParty[index]._stopMove();
          }
        })
      });
    },
    qrynotice() {
      notice(this.curProId).then(res => {
        this.notice = res.data;
        this.$nextTick(function () {
          //dom 加载完成 
          setTimeout(() => {
            this.$refs.scrollNotice[0]._startMove();
          }, 1000)

          // this.$refs.scrollNotice[0]._startMove();
          for (let index = 1; index < this.notice.length; index++) {
            this.$refs.scrollNotice[index]._stopMove();
          }

        });

      });
    },



    // 在图上画出项目分布======start
    //画出项目名字
    drawFont(x, y, value) {
      let widthf = 150;
      switch (value.length) {
        case 4:
          widthf = 80;
          break;
        case 5:
          widthf = 95; break;
        case 6:
          widthf = 100; break;
        case 7:
          widthf = 120; break;
        case 8:
          widthf = 140; break;
      }
      this.ctx.beginPath();
      this.ctx.fillStyle = "#380066"; //
      this.ctx.fillRect(x, y, widthf, 30);
      this.ctx.beginPath();
      this.ctx.fillStyle = "white"; //
      this.ctx.font = "15px Arial";
      this.ctx.fillText(value, x + 5, y + 20);
    },
    //画出项目在图上的坐标点
    drawPoint(x, y, r) {
      if (!r) r = 8;
      this.ctx.beginPath();
      this.ctx.arc(x, y, r, 0, 2 * Math.PI);
      this.ctx.fillStyle = "#380066"; //
      this.ctx.fill();
    },
    //连接坐标点和名字
    drawLine(points) {
      this.ctx.beginPath();
      this.ctx.lineWidth = 2;
      this.ctx.moveTo(points.point.x, points.point.y);
      this.ctx.lineTo(points.line.x, points.line.y);

      let endx = points.font.x, endy = points.font.y;

      if (endx <= points.point.x) {
        if (points.point.x - endx - (points.proname.length * 16) < 60) {
          endx = endx + (points.proname.length * 8);
          // console.log(points.proname,'endx',endx,'x',points.point.x)
        } else {
          endx = endx + points.proname.length * 16;
        }
      }

      if (points.line.y > points.font.y) {
        endy = points.font.y + 15;
      }

      this.ctx.lineTo(endx, endy);
      this.ctx.strokeStyle = "#380066"; //"red";
      this.ctx.stroke();

    },
    // 在图上画出项目分布======end



  },
  // 生命周期 - 创建完成（可以访问当前this实例）
  created() {

    this.qryweatherWeek();

    this.curProId = 1;
    // this.qryProjectBaseInfo();
    // this.qryprojectleaderInfo();
    // this.qryprojectStarInfo();
    // this.qryprojectProgressInfo();
    this.qrystar();
    this.qryparty();
    this.qrynotice();
    this.qrynews();

    let _this = this; // 声明一个变量指向Vue实例this，保证作用域一致

    this.timePro = setInterval(() => {

      // _this.qryProjectBaseInfo();
      _this.qryprojectleaderInfo();
      _this.qryprojectStarInfo();
      _this.qryprojectProgressInfo();

      _this.curProId = _this.curProId + 1;
      if (_this.curProId > 10) _this.curProId = 1;


    }, 1000 * 10); //单位为ms，

  },
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {
    this.ctx = this.$refs.tagcanvas.getContext("2d");
    this.ctxdom = this.$refs.tagcanvas;
    this.$nextTick(function () {
      //dom 加载完成
      // this.noticeCentDetail = this.$refs.centdetail;
      // console.log(this.noticeCentDetail.style.height)
    })



    let projectPoints = this.projects;
    for (const index in projectPoints) {
      let item = projectPoints[index];
      // debugger
      this.drawPoint(item.point.x, item.point.y);
      this.drawFont(item.font.x, item.font.y, item.proname);

      // this.drawLine2(item.point.x, item.point.y,item.line.x, item.line.y,item.font.x, item.font.y);
      this.drawLine(item);
    }


    let _this = this; // 声明一个变量指向Vue实例this，保证作用域一致

    this.timer = setInterval(() => {
      _this.date = new Date(); // 修改数据date
    }, 1000);
  },
  beforeCreate() { }, // 生命周期 - 创建之前
  beforeMount() { }, // 生命周期 - 挂载之前
  beforeUpdate() { }, // 生命周期 - 更新之前
  updated() {

    this.$nextTick(function () {
      //dom 加载完成
      // this.noticeCentDetail = this.$refs.centdetail;
      // console.log(1,this.$refs.centdetail.offsetHeight)
      // console.log(2,this.$refs.centdetail.scrollHeight)
    })
    // this.$refs.('.div-party-main').find('p').css('color', 'blue');
  }, // 生命周期 - 更新之后
  beforeDestroy() {
    let _this = this; // 声明一个变量指向Vue实例this，保证作用域一致
    this.timer = setInterval(() => {
      _this.date = new Date(); // 修改数据date
    }, 1000);
  }, // 生命周期 - 销毁之前
  destroyed() { }, // 生命周期 - 销毁完成
  activated() { } // 如果页面有keep-alive缓存功能，这个函数会触发
}
</script>
<style lang='scss' scoped>
// @import url(); 引入公共css类

.canvas-div {
  position: absolute;
  /* top: 0%;
    left: 0%; */
  /* width: 100%;
  height: 100%; */
  width: 873px;
  height: 500px;
  margin-top: -500px;
  background-color: transparent;
  // z-index: 1001;
  // -moz-opacity: 0.7;
  // opacity: 0.7;
  // filter: alpha(opacity=10);
}
canvas {
  // position: absolute;
  /* top: 0%;
    left: 0%; */
  /* width: 100%;
  height: 100%; */
  // width: 873;
  // height: 500;
  // z-index: 1001;
  // margin-top: -500px;
  // background-color: transparent;
}

.div-main {
  width: 2812px;
  height: 1566px;
  box-sizing: border-box;
  background-color: #32005e;
  // position: absolute;
  position: relative;
  padding-top: 20px;
  padding-left: 13px;
  padding-right: 13px;
  padding-bottom: 15px;
}
.div-left {
  // width: 2157px;
  width: 873px;
  height: 1500px;
  box-sizing: border-box;
  // margin-left: 13px;
  // margin-top:20px;
  position: relative;
  // position: absolute;
  border: 2px solid;
  border-color: #440082;
  border-radius: 15px 15px 0px 15px;
  float: left;
  z-index: 10;

  .div-left-left-top {
    position: absolute;
    background-image: url("./assets/yqdp/地图/蒙版.png");
    background-size: cover;
    width: 873px;
    height: 660px;
  }
  .div-left-left-top-img {
    position: absolute;
    height: 46px;
    span {
      width: 220px;
      height: 46px;
      // margin-top: 18px;
      margin-left: 3px;
    }
  }
  .div-left-left-middle {
    position: absolute;
    width: 873px;
    height: 380px;
    margin-top: 730px;
    margin-left: 40px;
    box-sizing: border-box;

    .div-c-1 {
      height: 170px;
      box-sizing: border-box;
    }
    .div-c-2 {
      margin-top: 30px;
      height: 170px;
      box-sizing: border-box;
    }
    .div-content {
      // opacity: 40%;
      // width: 289px;
      // height: 166px;
      // background-image: linear-gradient(
      //   180deg,
      //   rgba(197, 248, 254, 0.27) 0%,
      //   rgba(162, 235, 246, 0.5) 100%
      // );
      // border-radius: 7px;
      float: left;
      margin-right: 30px;
      box-sizing: border-box;

      .div-img {
        width: 56px;
        height: 160px;
        background-image: linear-gradient(
          270.4deg,
          rgba(72, 37, 123, 0) 0%,
          #522199 100%
        );
        border: 3px solid;
        border-color: #4e058f;
        border-radius: 7px 0px 0px 7px;
        // margin-left: 1px;
        float: left;
      }
      .div-cent {
        float: left;
        min-width: 233px;
        height: 160px;
        background-color: #491079;
        border-radius: 0px 7px 7px 0px;
        padding-top: 6px;
      }

      .div-cent-right {
        float: left;
        min-width: 440px;
        height: 160px;
        background-color: #491079;
        border-radius: 0px 7px 7px 0px;
        padding-top: 6px;
      }

      .div-cent-1 {
        float: left;
        width: 170px;
      }
      .div-cent-2 {
        float: left;
        margin-left: 40px;
        margin-right: 40px;
      }

      .span-title {
        width: 93px;
        height: 29px;
        font-family: Microsoft YaHei;
        font-weight: 700;
        color: #ffffff;
        font-size: 22px;
        // letter-spacing:83px;
        line-height: 35px;
        // z-index: 99;
        margin-left: 16px;
      }
      .div-filed {
        margin-left: 16px;
        padding-top: 10px;
      }
      .div-filed-2 {
        margin-left: 2em;
        padding-top: 2em;
      }
      .span-filed {
        font-family: Microsoft YaHei;
        color: #ffffff;
        font-size: 20px;
        line-height: 35px;
      }
      .span-filed-cent {
        font-weight: 700;
        color: #ffea30;
        font-size: 20px;
        line-height: 35px;
      }
      .span-filed-cent-2 {
        font-weight: 700;
        color: #ffea30;
        font-size: 20px;
        line-height: 35px;
        margin-left: 2em;
      }
    }
  }

  .div-left-left-bottom {
    position: absolute;
    margin-top: 1110px;
    height: 406px;
    width: 877px;
    box-sizing: border-box;
  }
  .div-left-left-user {
    // position: absolute;
    width: 450px;
    height: 370px;
    float: left;

    .div-leader-cent {
      margin-left: 45px;
      margin-top: 69px;
      position: absolute;

      .el-avatar {
        border: 2px solid;
        border-color: #035aa9;
        background: transparent;
      }

      .leader-1 {
        margin-left: 110px;
        // position: absolute;
        // margin-top: -70px;

        .tuoxiang {
          margin-left: -5px;
        }
        .name {
          margin-left: 90px;
          margin-top: -70px;
        }
        .role {
        }
      }

      .leader-2 {
        margin-left: 110px;
        // position: absolute;
        margin-top: 20px;

        .tuoxiang {
        }
        .name {
          margin-left: 80px;
          margin-top: -65px;
        }
        .role {
        }
      }

      .users {
        margin-top: 20px;
        margin-left: -20px;

        box-sizing: border-box;
        .tuoxiang {
        }
        .name {
          margin-left: 65px;
          margin-top: -60px;
          width: 70px;
          height: 60px;
          box-sizing: border-box;
          overflow: hidden;
        }
        .role {
        }
        .el-row {
          width: 450px;
        }
        .el-col {
          width: 140px;
          margin-bottom: 10px;
          margin-left: 0px;
          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }
  }
  .div-left-left-star {
    // position: absolute;
    float: left;
    width: 314px;
    height: 370px;
    margin-right: -60px;

    .div-star {
      margin-left: 40px;
      margin-top: 69px;
      position: absolute;
      .el-row {
        margin-right: -50px;
      }

      .el-col {
        margin-bottom: 10px;
        margin-left: -15px;
        &:last-child {
          margin-bottom: 0;
        }
      }

      .el-avatar {
        border: 2px solid;
        border-color: #035aa9;
        margin-top: 10px;
        // opacity: 1;
        background: transparent;
      }
      .tupian {
        // border: 2px solid;
        // border-color: #035aa9;
        // margin-top: 10px;
        // opacity: 1;
      }

      .span-num {
        margin-top: 10px;
      }

      .star-back {
        // opacity: 44%;
        width: 120px;
        height: 150px;
        background-color: #43027d;
        text-align: center;
      }

      .font {
        color: #ffffff;
        font-size: 18px;
        font-family: Source Han Sans CN;
      }
      .font-num {
        font-family: DIN;
        color: #ffffff;
        font-size: 24px;
      }
    }
  }
  .leader-font {
    color: #ffffff;
    font-size: 20px;
    font-family: PingFang SC;
  }
  .leader-name {
  }
}

.div-mid {
  float: left;
  width: 988px;
  margin-right: 15px;
  margin-left: 26px;
  .mid-top {
    width: 960px;
    height: 293px;
    background-color: #350065;
    border: 1px solid;
    border-color: #440082;
    border-radius: 15px;

    // margin-left: 26px;

    .tupian {
      width: 100px;
      height: 78px;
      margin-left: 40px;
    }
    .cent {
      margin-left: 170px;
      margin-top: -70px;
    }

    .el-col {
      margin-bottom: 10px;
      // margin-left: -15px;
      margin-top: 15px;
      &:last-child {
        margin-bottom: 0;
      }
    }

    .font-name {
      font-family: Microsoft YaHei;
      color: #ffffff;
      font-size: 22px;
      height: 29px;
    }

    .font-cent {
      font-family: Microsoft YaHei;
      font-weight: 700;
      color: #95dfff;
      font-size: 40px;
      height: 52px;
    }
  }

  .mid-mid {
    margin-top: 30px;
    // margin-left: 24px;

    .el-carousel {
      height: 686px;

      ::v-deep .el-carousel__container {
        height: 686px;
      }
    }

    .mid-cent {
      margin-top: 18px;
      width: 960px;
      height: 686px;
      border-radius: 18px;
      margin-left: 4px;
    }

    .tupian {
      width: 960px;
      height: 686px;
      border-radius: 18px;
    }
  }

  .div-progress {
    // position: absolute;
    margin-top: 31.5px;
    margin-left: -28px;
    margin-bottom: 1px;
    border-top: 2px solid;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: #440082;
    border-radius: 0px 15px 15px 0px;
    z-index: 99;
    height: 378px;
    width: 990px;

    .progress-header {
      margin-left: 40px;
      // float: left;
      // position: absolute;

      .progress-cfg {
        margin-left: 300px;
        margin-top: -40px;
        float: left;
        // position: absolute;

        .cfg-finish {
          margin-left: 50px;
          width: 64px;
          height: 35px;
          background-color: #350065;
          border: 5px solid;
          border-color: #00d848;
          border-radius: 18px;
          float: left;
          // position: absolute;
        }
        .cfg-doing {
          margin-left: 50px;
          width: 64px;
          height: 35px;
          background-color: #350065;
          border: 5px solid;
          border-color: #ffea30;
          border-radius: 18px;
          float: left;
          // position: absolute;
        }
        .cfg-init {
          margin-left: 50px;
          width: 64px;
          height: 35px;
          background-color: #350065;
          border: 5px solid;
          border-color: #ff0000;
          border-radius: 18px;
          float: left;
          // position: absolute;
        }
        .cfg-finish-title {
          float: left;
          // position: absolute;
          margin-left: 5px;
          margin-top: 10px;
        }
        .cfg-title-font {
          width: 60px;
          height: 20px;
          font-family: Source Han Sans CN;
          color: #ffffff;
          font-size: 20px;
        }
      }
    }

    .progress-cent {
      position: absolute;
      width: 990px;
      margin-left: 12px;
      margin-top: 30px;
      .el-row {
        .el-col {
          // width: 100px;
          height: 100px;
        }
      }
      .pro-cent-cent {
        width: 95px;
        height: 50px;
        background-color: #32005e;
        border: 5px solid;
        // border-color: #00d848;
        border-radius: 30px;
        margin-bottom: 47px;

        font-family: Microsoft YaHei;
        color: #ffffff;
        font-size: 18px;
        text-align: center;

        float: left;
      }

      .pro-align {
        // padding: 15px 10px 10px 10px;
        // transform: translateY(-10%);
      }

      .cent-cent-font {
        // padding: 10px;
        // transform: translateY(-50%);
      }

      .pro-item-bar {
        height: 10px;
        width: 16.7px;
        background-color: #5e9eeb;
        float: left;
        margin-top: 26px;
      }

      .pro-item-bar-2 {
        position: absolute;
        height: 36px;
        width: 10px;
        background-color: #5e9eeb;
        margin-top: 64px;
        margin-left: 50px;
      }
    }
  }
}

.div-right {
  // padding-left: -120px;
  float: left;
  width: 880px;

  .div-time-main {
    width: 873px;
    height: 83px;
    background-color: #350065;
    border: 1px solid;
    border-color: #440082;

    .time-cent {
      font-family: Source Han Sans CN;
      color: #ffffff;
      font-size: 40px;
      height: 40px;
      float: left;
      margin-left: 70px;
      margin-top: 23px;
    }
  }

  .div-weather-main {
    margin-top: 15px;
    width: 873px;
    height: 234px;
    // position: absolute;
    .weather-warning {
      position: absolute;
      z-index: 99;
      margin-left: 16px;
      width: 838px;
      height: 54px;
      background-color: #3e0076;
      border: 1px solid;
      border-color: #987db1;

      .el-image {
        width: 44px;
        height: 43px;
        margin-left: 46px;
        margin-top: 4px;
      }
      span {
        height: 40px;
        font-family: Microsoft YaHei;
        font-weight: 700;
        color: #ffea30;
        font-size: 30px;
        text-align: center;
        margin-left: 20px;
      }
    }

    .weather-cent {
      position: absolute;
      z-index: 10;
      width: 873px;
      height: 204px;
      background-color: #350065;
      border: 1px solid;
      border-color: #440082;
      margin-top: 30px;
      padding-top: 33px;
      .el-row {
        .el-col {
          &:last-child {
            margin-bottom: 0;
          }
        }
      }
      .weather-item {
        height: 200px;
        text-align: center;
        // border: 2px solid;
        // border-color: #ffffff;
        .el-image {
          // float: left;
          margin-top: 15px;
        }
      }
      .weather-item-2 {
        height: 200px;
        text-align: center;
        // border: 2px solid;
        // border-color: #ffffff;

        .el-image {
          // float: left;
          // margin-top: 15px;
        }
        .el-row {
          margin-top: 10px;
        }
        .w-item-2 {
          margin-top: 10px;
          height: 160px;
          border: 2px solid;
          border-color: transparent transparent transparent #987db1;
        }
      }

      .span1 {
        font-family: Source Han Sans CN;
        font-weight: 500;
        color: #f9fafc;
        font-size: 28px;
        margin: 0px;
        padding: 0px;
        padding-top: 15px;
      }
      .span2 {
        font-family: Source Han Sans CN;
        color: #ffffff;
        font-size: 20px;
        margin: 0px;
        padding: 0px;
        padding-top: 20px;
      }
    }
  }

  .div-party-main {
    width: 873px;
    height: 595px;
    background-color: #350065;
    // border: 1px solid;
    // border-color: #440082;
    margin-top: 30px;
    background-image: url("./assets/yqdp/党建之窗+信息通告背景.png");
    background-size: cover;

    .party-header {
      padding-top: 10px;
    }
    .el-carousel {
      height: 480px;

      ::v-deep .el-carousel__container {
        height: 480px;
      }
    }
    .party-time {
      margin-left: 45px;
      margin-top: 30px;

      .time-cri {
        float: left;
        width: 20px;
        height: 20px;
        margin-top: 5px;
        margin-right: 15px;
        background-color: #ffffff;
        border: 1px solid;
        border-color: #6890f3;
        // border
        border-radius: 10px;
      }
      .time-font {
        float: left;
        height: 40px;
        font-family: Microsoft YaHei;
        color: #ffffff;
        font-size: 30px;
      }
    }
    .party-cent {
      margin-left: 45px;
      width: 787px;
      height: 421px;
      // margin-top: 25px;
      font-family: Microsoft YaHei;
      color: #ffffff;
      font-size: 22px;
      // letter-spacing: 41px;
      line-height: 35px;
      overflow: hidden;
    }
  }

  .div-notice-main {
    width: 873px;
    height: 513px;
    background-color: #350065;
    // border: 1px solid;
    // border-color: #440082;
    margin-top: 30px;
    background-image: url("./assets/yqdp/党建之窗+信息通告背景.png");
    background-size: cover;

    .el-carousel {
      height: 400px;

      ::v-deep .el-carousel__container {
        height: 400px;
      }
    }

    .notic-cent-main {
      margin-left: 40px;
    }
    .notice-header {
      padding-top: 10px;
    }
    .notice-title {
      width: 390px;
      height: 35px;
      margin-top: 24px;
      font-family: Microsoft YaHei;
      font-weight: 700;
      color: #ffffff;
      font-size: 26px;
    }
    .notice-cent {
      width: 389px;
      height: 360px;
      margin-top: 10px;
      font-family: Microsoft YaHei;
      color: #ffffff;
      font-size: 22px;
      // letter-spacing: 19px;
      line-height: 35px;
      overflow: hidden;

      // p {
      //   text-indent: 2em;
      // }
    }

    .notic-pic {
      float: right;
      width: 396px;
      height: 383px;
      padding-right: 30px;
    }
  }

  .cent-detail {
  }
}
::v-deep p {
  text-indent: 2em;
  // transform: translateY(10px);
}

.title-font {
  font-family: Microsoft YaHei;
  font-weight: 700;
  color: #ffffff;
  font-size: 35px;
}
</style>
